<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>爱美文网</title>
        <meta name="keywords" content="<?=\Config\System::$site['keywords']?>">
        <meta name="description" content="<?=\Config\System::$site['note']?>">
        <link rel="shortcut icon" href="/favicon.png?v1" type="image/x-icon" />
        <link rel="stylesheet" href="/layui/dist/css/layui.css?<?=$version?>">
        <link rel="stylesheet" href="/site.css?<?=$version?>">
    </head>
    <body>
        <!-- 你的HTML代码 -->
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <?php require TPL_PATH . 'home/header.html'; ?>
        <div class="layui-container">
            <!--首页推荐-->
            <div class="layui-field-box post-list">
                <div class="layui-row layui-col-space10" id="content">
                    <?php foreach($post_list as $r): ?>
                    <div class="layui-col-md4">
                        <div class="item">
                            <div class="thumb">
                                <a href="/post/<?=$r['post_id']?>" title="<?=$r['title']?>|<?=$r['author']?>"><img src="" data-src="<?=\Config\Qiniu::$domain . $r['image_url']?>?<?=$r['image_uptime']?>"></a>
                            </div>
                            <div class="text">
                                <div class="title"><a href="/post/<?=$r['post_id']?>"><?=$r['author']?>- <?=$r['title']?></a></div>
                                <div class="note"><a href="/post/<?=$r['post_id']?>"><?=$r['long_title']?></a></div>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; ?>
                </div>
            </div>

            <?php require TPL_PATH . 'home/footer.html'; ?>
        </div>
        <script src="/layui/dist/layui.js?<?=$version?>"></script>
        <script src="/site.js?<?=$version?>"></script>
    </body>
</html>